package com.cos.lession67.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author: COS
 * @time: 2022/9/21 10:11
 * @description:
 */
@Data//设置get/set方法
@AllArgsConstructor//全参数构造方法
@NoArgsConstructor//无参构造方法
@ToString //tostring方法
public class Emp {
    private int eno;
    private String ename;
    private String esex;
    private double salary;
    private String pwd;
    private int dno;
    private Date bornDate;

    public Emp(String ename, String esex, double salary, String pwd, int dno, Date bornDate) {
        this.ename = ename;
        this.esex = esex;
        this.salary = salary;
        this.pwd = pwd;
        this.dno = dno;
        this.bornDate = bornDate;
    }
}
